package com.superb.system.api.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

/**
 * @Author: ajie
 * @CreateTime: 2024-07-02 09:15
 */
@Data
@Tag(name = "权限分配")
public class Distribution {

    @NotBlank(message = "角色不能为空")
    @Schema(description = "角色id", requiredMode = Schema.RequiredMode.REQUIRED)
    private String roleId;

    @NotNull(message = "权限集合参数为必填")
    @Schema(title = "权限集合", description = "菜单和细分权限", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<String> permissionIds;

    @NotNull(message = "菜单集合参数为必填")
    @Schema(title = "菜单集合", description = "菜单权限", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<String> menuIds;

}
